package com.lskj.shiro.config.jwtconfig;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author zzq
 * @Date 2020/3/31 12:20
 * @Version 1.0
 */
public class JWTToken implements AuthenticationToken {

    private static final long serialVersionUID = 4523686345336207019L;

    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
